package cn.lastjune.pojo;

// Generated Mar 28, 2011 9:58:37 PM by Hibernate Tools 3.4.0.CR1

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Case generated by hbm2java
 */
@Entity
@Table(name = "CASE", schema = "CGB2")
public class Case implements java.io.Serializable
{

    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    private String recdispnum;
    private Mission mission;
    private Domaindept domaindept;
    private BigDecimal recid;
    private BigDecimal acttimestateid;
    private String recordtype;
    private String recordprocessstate;
    private String reportpatrol;
    private String verifypatrol;
    private String examinepatrol;
    private String acceptoperator;
    private String accreditationdutyperson;
    private String dispatchor;
    private String seconddispatchor;
    private String inspectior;
    private String examineoperator;
    private String closepeople;
    private String eventurgen;
    private BigDecimal disposetimelimit;
    private Date disposedeadline;
    private Date disposedate;
    private BigDecimal disposetimes;
    private BigDecimal delaytimes;
    private BigDecimal overtimemultiple;
    private Date acceptstarttime;
    private Date acceptendtime;
    private Date registerstarttime;
    private Date registerendtime;
    private Date endcasestarttime;
    private Date endcaseendtime;
    private Date endcasetime;
    private Date postponedtime;
    private Date abandontime;
    private String workingstaff;
    private String workingdept;
    private Date backstarttime;
    private BigDecimal postpinedtype;
    private BigDecimal onticktype;
    private BigDecimal delaytype;
    private String patrolid;
    private String tasknum;

    private Set<Domaindept> domaindepts = new HashSet<Domaindept>(0);
    private Set<Mission> missions = new HashSet<Mission>(0);

    public Case()
    {
    }

    public Case(String recdispnum)
    {
        this.recdispnum = recdispnum;
    }

    public Case(String recdispnum, Mission mission, Domaindept domaindept, BigDecimal recid, BigDecimal acttimestateid,
            String recordtype, String recordprocessstate, String reportpatrol, String verifypatrol,
            String examinepatrol, String acceptoperator, String accreditationdutyperson, String dispatchor,
            String seconddispatchor, String inspectior, String examineoperator, String closepeople, String eventurgen,
            BigDecimal disposetimelimit, Date disposedeadline, Date disposedate, BigDecimal disposetimes,
            BigDecimal delaytimes, BigDecimal overtimemultiple, Date acceptstarttime, Date acceptendtime,
            Date registerstarttime, Date registerendtime, Date endcasestarttime, Date endcaseendtime, Date endcasetime,
            Date postponedtime, Date abandontime, String workingstaff, String workingdept, Date backstarttime,
            BigDecimal postpinedtype, BigDecimal onticktype, BigDecimal delaytype, String patrolid,
            Set<Domaindept> domaindepts, Set<Mission> missions)
    {
        this.recdispnum = recdispnum;
        this.mission = mission;
        this.domaindept = domaindept;
        this.recid = recid;
        this.acttimestateid = acttimestateid;
        this.recordtype = recordtype;
        this.recordprocessstate = recordprocessstate;
        this.reportpatrol = reportpatrol;
        this.verifypatrol = verifypatrol;
        this.examinepatrol = examinepatrol;
        this.acceptoperator = acceptoperator;
        this.accreditationdutyperson = accreditationdutyperson;
        this.dispatchor = dispatchor;
        this.seconddispatchor = seconddispatchor;
        this.inspectior = inspectior;
        this.examineoperator = examineoperator;
        this.closepeople = closepeople;
        this.eventurgen = eventurgen;
        this.disposetimelimit = disposetimelimit;
        this.disposedeadline = disposedeadline;
        this.disposedate = disposedate;
        this.disposetimes = disposetimes;
        this.delaytimes = delaytimes;
        this.overtimemultiple = overtimemultiple;
        this.acceptstarttime = acceptstarttime;
        this.acceptendtime = acceptendtime;
        this.registerstarttime = registerstarttime;
        this.registerendtime = registerendtime;
        this.endcasestarttime = endcasestarttime;
        this.endcaseendtime = endcaseendtime;
        this.endcasetime = endcasetime;
        this.postponedtime = postponedtime;
        this.abandontime = abandontime;
        this.workingstaff = workingstaff;
        this.workingdept = workingdept;
        this.backstarttime = backstarttime;
        this.postpinedtype = postpinedtype;
        this.onticktype = onticktype;
        this.delaytype = delaytype;
        this.patrolid = patrolid;
        this.domaindepts = domaindepts;
        this.missions = missions;
    }

    @Id
    @Column(name = "RECDISPNUM", unique = true, nullable = false, length = 40)
    public String getRecdispnum()
    {
        return recdispnum;
    }

    public void setRecdispnum(String recdispnum)
    {
        this.recdispnum = recdispnum;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "TASKNUM", updatable = true, insertable = true)
    public Mission getMission()
    {
        return mission;
    }

    public void setMission(Mission mission)
    {
        this.mission = mission;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "DOMAINDEPARTMENTID")
    public Domaindept getDomaindept()
    {
        return domaindept;
    }

    public void setDomaindept(Domaindept domaindept)
    {
        this.domaindept = domaindept;
    }

    @Column(name = "RECID", precision = 22, scale = 0)
    public BigDecimal getRecid()
    {
        return recid;
    }

    public void setRecid(BigDecimal recid)
    {
        this.recid = recid;
    }

    @Column(name = "ACTTIMESTATEID", precision = 22, scale = 0)
    public BigDecimal getActtimestateid()
    {
        return acttimestateid;
    }

    public void setActtimestateid(BigDecimal acttimestateid)
    {
        this.acttimestateid = acttimestateid;
    }

    @Column(name = "RECORDTYPE", length = 40)
    public String getRecordtype()
    {
        return recordtype;
    }

    public void setRecordtype(String recordtype)
    {
        this.recordtype = recordtype;
    }

    @Column(name = "RECORDPROCESSSTATE", length = 100)
    public String getRecordprocessstate()
    {
        return recordprocessstate;
    }

    public void setRecordprocessstate(String recordprocessstate)
    {
        this.recordprocessstate = recordprocessstate;
    }

    @Column(name = "REPORTPATROL", length = 40)
    public String getReportpatrol()
    {
        return reportpatrol;
    }

    public void setReportpatrol(String reportpatrol)
    {
        this.reportpatrol = reportpatrol;
    }

    @Column(name = "VERIFYPATROL", length = 40)
    public String getVerifypatrol()
    {
        return verifypatrol;
    }

    public void setVerifypatrol(String verifypatrol)
    {
        this.verifypatrol = verifypatrol;
    }

    @Column(name = "EXAMINEPATROL", length = 40)
    public String getExaminepatrol()
    {
        return examinepatrol;
    }

    public void setExaminepatrol(String examinepatrol)
    {
        this.examinepatrol = examinepatrol;
    }

    @Column(name = "ACCEPTOPERATOR", length = 40)
    public String getAcceptoperator()
    {
        return acceptoperator;
    }

    public void setAcceptoperator(String acceptoperator)
    {
        this.acceptoperator = acceptoperator;
    }

    @Column(name = "ACCREDITATIONDUTYPERSON", length = 40)
    public String getAccreditationdutyperson()
    {
        return accreditationdutyperson;
    }

    public void setAccreditationdutyperson(String accreditationdutyperson)
    {
        this.accreditationdutyperson = accreditationdutyperson;
    }

    @Column(name = "DISPATCHOR", length = 40)
    public String getDispatchor()
    {
        return dispatchor;
    }

    public void setDispatchor(String dispatchor)
    {
        this.dispatchor = dispatchor;
    }

    @Column(name = "SECONDDISPATCHOR", length = 40)
    public String getSeconddispatchor()
    {
        return seconddispatchor;
    }

    public void setSeconddispatchor(String seconddispatchor)
    {
        this.seconddispatchor = seconddispatchor;
    }

    @Column(name = "INSPECTIOR", length = 40)
    public String getInspectior()
    {
        return inspectior;
    }

    public void setInspectior(String inspectior)
    {
        this.inspectior = inspectior;
    }

    @Column(name = "EXAMINEOPERATOR", length = 40)
    public String getExamineoperator()
    {
        return examineoperator;
    }

    public void setExamineoperator(String examineoperator)
    {
        this.examineoperator = examineoperator;
    }

    @Column(name = "CLOSEPEOPLE", length = 40)
    public String getClosepeople()
    {
        return closepeople;
    }

    public void setClosepeople(String closepeople)
    {
        this.closepeople = closepeople;
    }

    @Column(name = "EVENTURGEN", length = 40)
    public String getEventurgen()
    {
        return eventurgen;
    }

    public void setEventurgen(String eventurgen)
    {
        this.eventurgen = eventurgen;
    }

    @Column(name = "DISPOSETIMELIMIT", precision = 12)
    public BigDecimal getDisposetimelimit()
    {
        return disposetimelimit;
    }

    public void setDisposetimelimit(BigDecimal disposetimelimit)
    {
        this.disposetimelimit = disposetimelimit;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "DISPOSEDEADLINE", length = 7)
    public Date getDisposedeadline()
    {
        return disposedeadline;
    }

    public void setDisposedeadline(Date disposedeadline)
    {
        this.disposedeadline = disposedeadline;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "DISPOSEDATE", length = 7)
    public Date getDisposedate()
    {
        return disposedate;
    }

    public void setDisposedate(Date disposedate)
    {
        this.disposedate = disposedate;
    }

    @Column(name = "DISPOSETIMES", precision = 12)
    public BigDecimal getDisposetimes()
    {
        return disposetimes;
    }

    public void setDisposetimes(BigDecimal disposetimes)
    {
        this.disposetimes = disposetimes;
    }

    @Column(name = "DELAYTIMES", precision = 12)
    public BigDecimal getDelaytimes()
    {
        return delaytimes;
    }

    public void setDelaytimes(BigDecimal delaytimes)
    {
        this.delaytimes = delaytimes;
    }

    @Column(name = "OVERTIMEMULTIPLE", precision = 10, scale = 3)
    public BigDecimal getOvertimemultiple()
    {
        return overtimemultiple;
    }

    public void setOvertimemultiple(BigDecimal overtimemultiple)
    {
        this.overtimemultiple = overtimemultiple;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "ACCEPTSTARTTIME", length = 7)
    public Date getAcceptstarttime()
    {
        return acceptstarttime;
    }

    public void setAcceptstarttime(Date acceptstarttime)
    {
        this.acceptstarttime = acceptstarttime;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "ACCEPTENDTIME", length = 7)
    public Date getAcceptendtime()
    {
        return acceptendtime;
    }

    public void setAcceptendtime(Date acceptendtime)
    {
        this.acceptendtime = acceptendtime;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "REGISTERSTARTTIME", length = 7)
    public Date getRegisterstarttime()
    {
        return registerstarttime;
    }

    public void setRegisterstarttime(Date registerstarttime)
    {
        this.registerstarttime = registerstarttime;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "REGISTERENDTIME", length = 7)
    public Date getRegisterendtime()
    {
        return registerendtime;
    }

    public void setRegisterendtime(Date registerendtime)
    {
        this.registerendtime = registerendtime;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "ENDCASESTARTTIME", length = 7)
    public Date getEndcasestarttime()
    {
        return endcasestarttime;
    }

    public void setEndcasestarttime(Date endcasestarttime)
    {
        this.endcasestarttime = endcasestarttime;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "ENDCASEENDTIME", length = 7)
    public Date getEndcaseendtime()
    {
        return endcaseendtime;
    }

    public void setEndcaseendtime(Date endcaseendtime)
    {
        this.endcaseendtime = endcaseendtime;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "ENDCASETIME", length = 7)
    public Date getEndcasetime()
    {
        return endcasetime;
    }

    public void setEndcasetime(Date endcasetime)
    {
        this.endcasetime = endcasetime;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "POSTPONEDTIME", length = 7)
    public Date getPostponedtime()
    {
        return postponedtime;
    }

    public void setPostponedtime(Date postponedtime)
    {
        this.postponedtime = postponedtime;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "ABANDONTIME", length = 7)
    public Date getAbandontime()
    {
        return abandontime;
    }

    public void setAbandontime(Date abandontime)
    {
        this.abandontime = abandontime;
    }

    @Column(name = "WORKINGSTAFF", length = 100)
    public String getWorkingstaff()
    {
        return workingstaff;
    }

    public void setWorkingstaff(String workingstaff)
    {
        this.workingstaff = workingstaff;
    }

    @Column(name = "WORKINGDEPT", length = 100)
    public String getWorkingdept()
    {
        return workingdept;
    }

    public void setWorkingdept(String workingdept)
    {
        this.workingdept = workingdept;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "BACKSTARTTIME", length = 7)
    public Date getBackstarttime()
    {
        return backstarttime;
    }

    public void setBackstarttime(Date backstarttime)
    {
        this.backstarttime = backstarttime;
    }

    @Column(name = "POSTPINEDTYPE", precision = 22, scale = 0)
    public BigDecimal getPostpinedtype()
    {
        return postpinedtype;
    }

    public void setPostpinedtype(BigDecimal postpinedtype)
    {
        this.postpinedtype = postpinedtype;
    }

    @Column(name = "ONTICKTYPE", precision = 22, scale = 0)
    public BigDecimal getOnticktype()
    {
        return onticktype;
    }

    public void setOnticktype(BigDecimal onticktype)
    {
        this.onticktype = onticktype;
    }

    @Column(name = "DELAYTYPE", precision = 22, scale = 0)
    public BigDecimal getDelaytype()
    {
        return delaytype;
    }

    public void setDelaytype(BigDecimal delaytype)
    {
        this.delaytype = delaytype;
    }

    @Column(name = "PATROLID", length = 20)
    public String getPatrolid()
    {
        return patrolid;
    }

    public void setPatrolid(String patrolid)
    {
        this.patrolid = patrolid;
    }

    // @OneToMany(fetch = FetchType.LAZY, mappedBy = "case")
    // public Set<Domaindept> getDomaindepts()
    // {
    // return domaindepts;
    // }
    //
    // public void setDomaindepts(Set<Domaindept> domaindepts)
    // {
    // this.domaindepts = domaindepts;
    // }
    //
    // @OneToMany(fetch = FetchType.LAZY, mappedBy = "case")
    // public Set<Mission> getMissions()
    // {
    // return missions;
    // }
    //
    // public void setMissions(Set<Mission> missions)
    // {
    // this.missions = missions;
    // }

}
